﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001341 RID: 4929
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeFightActivityRewardScRsp : IMessage<TakeFightActivityRewardScRsp>, IMessage, IEquatable<TakeFightActivityRewardScRsp>, IDeepCloneable<TakeFightActivityRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003E2D RID: 15917
		// (get) Token: 0x0600DCAD RID: 56493 RVA: 0x0024ED6B File Offset: 0x0024CF6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeFightActivityRewardScRsp> Parser
		{
			get
			{
				return TakeFightActivityRewardScRsp._parser;
			}
		}

		// Token: 0x17003E2E RID: 15918
		// (get) Token: 0x0600DCAE RID: 56494 RVA: 0x0024ED72 File Offset: 0x0024CF72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeFightActivityRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003E2F RID: 15919
		// (get) Token: 0x0600DCAF RID: 56495 RVA: 0x0024ED84 File Offset: 0x0024CF84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeFightActivityRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DCB0 RID: 56496 RVA: 0x0024ED8B File Offset: 0x0024CF8B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeFightActivityRewardScRsp()
		{
		}

		// Token: 0x0600DCB1 RID: 56497 RVA: 0x0024ED94 File Offset: 0x0024CF94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeFightActivityRewardScRsp(TakeFightActivityRewardScRsp other) : this()
		{
			this.groupId_ = other.groupId_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.fightStageId_ = other.fightStageId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DCB2 RID: 56498 RVA: 0x0024EDF8 File Offset: 0x0024CFF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeFightActivityRewardScRsp Clone()
		{
			return new TakeFightActivityRewardScRsp(this);
		}

		// Token: 0x17003E30 RID: 15920
		// (get) Token: 0x0600DCB3 RID: 56499 RVA: 0x0024EE00 File Offset: 0x0024D000
		// (set) Token: 0x0600DCB4 RID: 56500 RVA: 0x0024EE08 File Offset: 0x0024D008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x17003E31 RID: 15921
		// (get) Token: 0x0600DCB5 RID: 56501 RVA: 0x0024EE11 File Offset: 0x0024D011
		// (set) Token: 0x0600DCB6 RID: 56502 RVA: 0x0024EE19 File Offset: 0x0024D019
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003E32 RID: 15922
		// (get) Token: 0x0600DCB7 RID: 56503 RVA: 0x0024EE22 File Offset: 0x0024D022
		// (set) Token: 0x0600DCB8 RID: 56504 RVA: 0x0024EE2A File Offset: 0x0024D02A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FightStageId
		{
			get
			{
				return this.fightStageId_;
			}
			set
			{
				this.fightStageId_ = value;
			}
		}

		// Token: 0x17003E33 RID: 15923
		// (get) Token: 0x0600DCB9 RID: 56505 RVA: 0x0024EE33 File Offset: 0x0024D033
		// (set) Token: 0x0600DCBA RID: 56506 RVA: 0x0024EE3B File Offset: 0x0024D03B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600DCBB RID: 56507 RVA: 0x0024EE44 File Offset: 0x0024D044
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeFightActivityRewardScRsp);
		}

		// Token: 0x0600DCBC RID: 56508 RVA: 0x0024EE54 File Offset: 0x0024D054
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeFightActivityRewardScRsp other)
		{
			return other != null && (other == this || (this.GroupId == other.GroupId && object.Equals(this.Reward, other.Reward) && this.FightStageId == other.FightStageId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DCBD RID: 56509 RVA: 0x0024EEC4 File Offset: 0x0024D0C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.FightStageId != 0U)
			{
				num ^= this.FightStageId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DCBE RID: 56510 RVA: 0x0024EF4B File Offset: 0x0024D14B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DCBF RID: 56511 RVA: 0x0024EF53 File Offset: 0x0024D153
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DCC0 RID: 56512 RVA: 0x0024EF5C File Offset: 0x0024D15C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.FightStageId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.FightStageId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.Reward);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DCC1 RID: 56513 RVA: 0x0024EFF0 File Offset: 0x0024D1F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.FightStageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FightStageId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DCC2 RID: 56514 RVA: 0x0024F078 File Offset: 0x0024D278
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeFightActivityRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.FightStageId != 0U)
			{
				this.FightStageId = other.FightStageId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DCC3 RID: 56515 RVA: 0x0024F108 File Offset: 0x0024D308
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DCC4 RID: 56516 RVA: 0x0024F114 File Offset: 0x0024D314
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 56U)
					{
						this.FightStageId = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 82U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 104U)
					{
						this.GroupId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005795 RID: 22421
		private static readonly MessageParser<TakeFightActivityRewardScRsp> _parser = new MessageParser<TakeFightActivityRewardScRsp>(() => new TakeFightActivityRewardScRsp());

		// Token: 0x04005796 RID: 22422
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005797 RID: 22423
		public const int GroupIdFieldNumber = 13;

		// Token: 0x04005798 RID: 22424
		private uint groupId_;

		// Token: 0x04005799 RID: 22425
		public const int RewardFieldNumber = 10;

		// Token: 0x0400579A RID: 22426
		private ItemList reward_;

		// Token: 0x0400579B RID: 22427
		public const int FightStageIdFieldNumber = 7;

		// Token: 0x0400579C RID: 22428
		private uint fightStageId_;

		// Token: 0x0400579D RID: 22429
		public const int RetcodeFieldNumber = 9;

		// Token: 0x0400579E RID: 22430
		private uint retcode_;
	}
}
